﻿using FrameworkCore.Migrations.Data;
using System.ComponentModel.DataAnnotations.Schema;

namespace Domain.Entities.Roles;

/// <summary>
/// 角色表
/// </summary>
[Table("Roles")]
public class Role : BaseAuditableAndSoftDeletedEntity, IAuditTrial
{
    /// <summary>
    /// 角色名称
    /// </summary>
    public virtual string? Name { get; set; }

    /// <summary>
    /// 是否具有超级管理员权限
    /// </summary>
    public virtual bool? HasAdministrator { get; set; } = false;

    /// <summary>
    /// 是否具有负面特性
    /// </summary>
    public virtual bool? HasNegative { get; set; } = false;

    /// <summary>
    /// 启用
    /// </summary>
    public virtual bool? Enabled { get; set; } = true;
}
